//package com.jack.mvvmexample
//
//import android.os.Bundle
//import android.os.PersistableBundle
//import androidx.appcompat.app.AppCompatActivity
//import androidx.databinding.DataBindingUtil
//import androidx.recyclerview.widget.LinearLayoutManager
//import androidx.recyclerview.widget.RecyclerView
//import com.jack.mvvmexample.databinding.ActivitySceneryBinding
//
//class SceneryActivity : AppCompatActivity() {
//
//    private lateinit var mBinding: ActivitySceneryBinding
//    private lateinit var mSceneryAdapter: SceneryAdapter
//
//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        mBinding =
//            DataBindingUtil.setContentView<ActivitySceneryBinding>(this, R.layout.activity_scenery)
//
//        mSceneryAdapter = SceneryAdapter(arrayListOf())
//
//        mBinding.list.let {
//            it.layoutManager = LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)
//            it.adapter = mSceneryAdapter
//            it.setHasFixedSize(true)
//        }
//
//        var data = Constants.images
//        mSceneryAdapter.setNewData(data)
//    }
//}